package com.qq.day02.work2;

public class Manager extends Employee {
    public Clerk Clerk;//职员

    @Override
    void showMsg() {
        System.out.println("经理：工号为" + getWorkid() + "，名字为" + getName() + "，部门为" + getDept() + "，他的职工名字是" + getClerk().getName());
    }

    public Manager() {
    }

    public Manager(String name, String workid, String dept, Clerk clerk) {
        super(name, workid, dept);
        Clerk = clerk;
    }

    public com.qq.day02.work2.Clerk getClerk() {
        return Clerk;
    }

    public void setClerk(com.qq.day02.work2.Clerk clerk) {
        Clerk = clerk;
    }
}


